package ysm.controller;

import org.apache.catalina.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import ysm.entity.Usercomploye;
import ysm.service.UsercomployeService;

@RequestMapping("user")
@RestController
public class UserEmployeController {

	@Autowired
	private UsercomployeService usercomployeService;
	
	@RequestMapping("/insertUserComploye")
	public void insertUserComploye(Usercomploye record) {
		usercomployeService.insert(record);
	}
	
	@RequestMapping("/selectByPrimaryKey2")
	public Usercomploye selectByPrimaryKey2(Integer uid) {
		return usercomployeService.selectByPrimaryKey2(uid);
	}
}
